|
Less (sometimes stylized as LESS) is a dynamic style sheet language that can be compiled into Cascading Style Sheets (CSS) and run on the client-side or server-side.〔(Official Less website ) Official Less website〕 Designed by Alexis Sellier, Less is influenced by Sass and has influenced the newer "SCSS" syntax of Sass, which adapted its CSS-like block formatting syntax.〔(Sass and Less ) Sass and Less〕 Less is open-source. Its first version was written in Ruby; however, in the later versions, use of Ruby has been deprecated and replaced by JavaScript. The indented syntax of Less is a nested metalanguage, as valid CSS is valid Less code with the same semantics. Less provides the following mechanisms: variables, nesting, mixins, operators and functions; the main difference between Less and other CSS precompilers being that Less allows real-time compilation via less.js by the browser.〔(【引用サイトリンク】title=css - Is there a SASS.js? Something like LESS.js? )〕〔 == Variables == Less allows variables to be defined. Variables in Less are defined with an at sign (@). Variable assignment is done with a colon (:). During translation, the values of the variables are inserted into the output CSS document.〔 The code above in Less would compile to the following CSS code. 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「Less (stylesheet language)」の詳細全文を読む スポンサード リンク
|